<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        // setTimeout  只调用一次
        // setInterval 是循环调用， 每隔两秒钟就调用一次

        setInterval(fn, 2000)
        function fn() {
            console.log('爆炸案');
        }
    </script>
</body>

</html>